const http = uni.$u.http;


//用户端首页数据

 // export const getuserindex = (params, config = {}) => http.post('https://www.chejingjing.cn/api/index/index', params, config);

//用户端上门洗车分类
 export const categorylist = (params, config = {}) => http.post('https://www.chejingjing.cn/api/index/categorylist', params, config);


//用户提交保险   api/Users/insurance
 export const getinsurance = (params, config = {}) => http.post('https://www.chejingjing.cn/api/Users/insurance', params, config);

//用户端年审 
 export const getreview = (params, config = {}) => http.post('https://www.chejingjing.cn/api/Users/review', params, config);

//获取客服电话  
 export const getkefu = (params, config = {}) => http.post('https://www.chejingjing.cn/api/index/kefu, params, config');

//用户会员中心 
 export const usercenter = (params, config = {}) => http.post('https://www.chejingjing.cn/api/users/usercenter', params, config);







//上传图片
 export const upload = (params) => http.upload('/api/common/upload', params); 
 
 //获取邀请二维码
 export const getcode = (params, config = {}) => http.post('/api/common/getcode', params, config);
 
 //检测Token是否过期
 export const check = (params, config = {}) => http.post('/api/token/check', params, config);
 
 // 注册
 export const register = (params, config = {}) => http.post('/api/user/register', params, config);
 
 //登录
 export const login = (params, config = {}) => http.post('/api/user/login', params, config);
 
 //手机验证码登录
 export const mobilelogin = (params, config = {}) => http.post('/api/user/mobilelogin', params, config);
 
 //获取用户信息
 export const getUserInfo = (params, config = {}) => http.post('/api/user/index', params, config);
 
 //注销登录
 export const logout = (params, config = {}) => http.post('/api/user/logout', params, config);
 
 //修改个人信息
 export const profile = (params, config = {}) => http.post('/api/user/profile', params, config);
 
 //重置密码
 export const resetpwd = (params, config = {}) => http.post('/api/user/resetpwd', params, config);
 
 //发送验证码
 export const send = (params, config = {}) => http.post('/api/sms/send', params, config);
 
 //地址
// 获取地址列表
 export const getAddressList = (params, config = {}) => http.post('/api/Useraddress/index', params, config);
 
 //删除地址
 export const del_address = (params, config = {}) => http.post('/api/Useraddress/del_address', params, config);
 
 //添加编辑地址
 export const add_address = (params, config = {}) => http.post('/api/Useraddress/add_address', params, config);
 
 //获取要修改的地址信息
 export const edit_info = (params, config = {}) => http.post('/api/Useraddress/edit_info', params, config);
 
 //获取默认地址信息
 export const get_default_address = (params, config = {}) => http.post('/api/Useraddress/get_default_address', params, config);
 
 
 
 //团队
 
 //获取团队成员
 export const team_list = (params, config = {}) => http.post('/api/user/team_list', params, config);
 
 //提现记录列表
 export const get_cash_list = (params, config = {}) => http.post('/api/usermoney/get_cash_list', params, config);
 
 
 //提现明细 
 export const get_cash_details = (params, config = {}) => http.post('/api/usermoney/get_cash_details', params, config);
 
 //产品收益 or 产品佣金  记录
 export const money_log = (params, config = {}) => http.post('/api/usermoney/money_log', params, config);
 
 //π券明细
 export const ticket_list = (params, config = {}) => http.post('/api/usermoney/ticket_list', params, config);
 
 //π豆明细
 export const beans_list = (params, config = {}) => http.post('/api/usermoney/beans_list', params, config);
 
 //积分明细
 export const score_list = (params, config = {}) => http.post('/api/usermoney/score_list', params, config);
 
 //π豆转赠
 export const give_beans = (params, config = {}) => http.post('/api/user/give_beans', params, config);
 
 // //产品佣金 动态收益
 // export const money_log = (params, config = {}) => http.post('/api/usermoney/money_log', params, config);
 
 //获取绑定收款信息
 export const get_user_card = (params, config = {}) => http.post('/api/usermoney/get_user_card', params, config);
 
 //绑定银行卡微信支付宝信息
 export const submit_card = (params, config = {}) => http.post('/api/usermoney/submit_card', params, config);
 
 //提现
 export const cash = (params, config = {}) => http.post('/api/usermoney/cash', params, config);
 
 //业绩排行
 export const user_team_list = (params, config = {}) => http.post('/api/user/user_team_list', params, config);
 
 //获取爱心值排行榜
 export const user_love_money = (params, config = {}) => http.post('/api/user/user_love_money', params, config);
 
 
 //用户、隐私协议、公告
 export const common = (params, config = {}) => http.post('/api/common/common', params, config);
 
 ////首页
 //首页轮播图
 export const banner = (params, config = {}) => http.post('/api/index/banner', params, config);
 
 //首页视频
 export const get_video = (params, config = {}) => http.post('/api/index/get_video', params, config);
 
 //首页消费推荐商品
 export const indexGoods = (params, config = {}) => http.post('/api/index/indexGoods', params, config);
 
 //商品详情
 export const goods_detail = (params, config = {}) => http.post('/api/common/goods_detail', params, config);
 
 //消费专区等 跳转商品详情 到确认订单页数据获取
 export const confirmOrder = (params, config = {}) => http.post('/api/ConfirmOrder/index', params, config);
 
 //消息列表
 export const user_msg = (params, config = {}) => http.post('/api/user/user_msg', params, config);
 
 //消息详情
 export const user_msg_details = (params, config = {}) => http.post('/api/user/user_msg_details', params, config);
 
 //获取专区的时间段
 export const get_time_list = (params, config = {}) => http.post('/api/common/get_time_list', params, config);
 
//预约
 export const subscrib = (params, config = {}) => http.post('/api/user/subscrib', params, config);
 
 //一键抢单
 export const rob_order = (params, config = {}) => http.post('/api/userorder/rob_order', params, config);
 
 //获取抢单列表
 export const rob_order_list = (params, config = {}) => http.post('/api/userorder/rob_order_list', params, config);
 
 //获取专区商品列表
 export const goodsList = (params, config = {}) => http.post('/api/common/goodsList', params, config);
 
 //下单
 export const confirm = (params, config = {}) => http.post('/api/ConfirmOrder/confirm', params, config);
 
 //取消订单
 export const cancel_order = (params, config = {}) => http.post('/api/Userorder/cancel_order', params, config);
 
 //获取预约记录
 export const get_subscribe_list = (params, config = {}) => http.post('/api/userorder/get_subscribe_list', params, config);
 
 //订单列表
 export const userorder = (params, config = {}) => http.post('/api/userorder/index', params, config);
 
 //订单详情
 export const userOrderDetail = (params, config = {}) => http.post('/api/userorder/detail', params, config);
 
 //支付
 export const payIndex = (params, config = {}) => http.post('/api/pay/index', params, config);
 
 //用户、隐私协议、公告
 export const commonCommon = (params, config = {}) => http.post('/api/common/common', params, config);
 
 //师傅端登录
export const workerlogin = (params, config = {}) => http.post('https://www.chejingjing.cn/api/login/workerlogin', params, config);

//接单大厅 api/Worker/orderlists
export const orderlists = (params, config = {}) => http.post('https://www.chejingjing.cn/api/Worker/orderlists', params, config);